<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Netkk.Models.UserModel>" %>
<%@ Import Namespace="Netkk.Core"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Profil - .NET-Stammtisch Konstanz-Kreuzlingen</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>Profil</h1>
    <p>
        <%
            if (!String.IsNullOrEmpty(Model.Image))
            {%>
        <img src="<%=Html.Action("Member", "Image", Model.Id) %>" border="0" align="right" />
        <%
            }%>
        <strong>Name:</strong>
        <%=Model.FirstName%>
        <%=Model.LastName%></p>
    <p>
        <strong>Website:</strong>
        <%
            if (!String.IsNullOrEmpty(Model.Website))
            {
                string[] sites = Model.Website.Split(';');
                for (int i = 0; i < sites.Length; i++)
                {%><br />
        <a href="<%=sites[i]%>">
            <%=sites[i]%></a>
        <%}
            }
        %>
    </p>
    <p>
        <strong>Beschreibung:</strong></p>
    <%=Model.Description%>
    <% if (Model.AllowEdit)
       { %>
    <p>
        <a href="<%=Html.Action("Member", "Edit", Model.Id) %>" class="useredit button">Profil bearbeiten</a></p>
    <%} %>
</asp:Content>
